package com.example.shop.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* <p>
* 快递单表
* </p>
*
* @author 作者
* @since 2022-05-29
*/
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("courier")
public class Courier extends Model<Courier> {

  private static final long serialVersionUID = 1L;

  @TableId(value = "courier_number", type = IdType.ASSIGN_ID)
  private Long courierId;
  //快递单号
  private Long courierNumber;
  //快递类型，比如：顺丰、京东快递等
  private String courierType;
  //发件人的名字
  private String senderName;
  //发件人的电话
  private String senderPhone;
  //发件人的地区
  private String senderArea;
  //发件人的详细地址
  private String senderDetailedAddress;
  //发件人的经度
  private double senderLongitude;
  //发件人的纬度
  private double senderLatitude;
  //收件人的名字
  private String recipientName;
  //收件人的电话
  private String recipientPhone;
  //收件人的地区
  private String recipientArea;
  //收件人的详细地址
  private String recipientDetailedAddress;
  //收件人的经度
  private double recipientLongitude;
  //收发件人的纬度
  private double recipientLatitude;

  @Override
  public String toString() {
    return "Courier{" +
            "courierId=" + courierId +
            ", courierNumber=" + courierNumber +
            ", courierType='" + courierType + '\'' +
            ", senderName='" + senderName + '\'' +
            ", senderPhone='" + senderPhone + '\'' +
            ", senderArea='" + senderArea + '\'' +
            ", senderDetailedAddress='" + senderDetailedAddress + '\'' +
            ", senderLongitude=" + senderLongitude +
            ", senderLatitude=" + senderLatitude +
            ", recipientName='" + recipientName + '\'' +
            ", recipientPhone='" + recipientPhone + '\'' +
            ", recipientArea='" + recipientArea + '\'' +
            ", recipientDetailedAddress='" + recipientDetailedAddress + '\'' +
            ", recipientLongitude=" + recipientLongitude +
            ", recipientLatitude=" + recipientLatitude +
            '}';
  }
}
